package sisdroid.framework.sensors;

import java.util.HashSet;
import java.util.Set;

import sisdroid.framework.model.*;

public class CompositeSensor implements Sensor
{
	Sensor theOne;
	Sensor theOther;
	
	
	public CompositeSensor( Sensor one, Sensor other )
	{
		theOne = one;
		theOther = other;
	}

	@Override
	public Set<Net> getNetIDS()
	{
		Set<Net> result = new HashSet<Net>();
		result.addAll( theOne.getNetIDS() );
		result.addAll( theOther.getNetIDS() );
		return result;
	}

}
